import { AuthenticatedApp } from 'authenticated-app';
import { useAuthContext } from 'context/auth-context';
import React from 'react';
import { UnauthenticatedApp } from 'unauthenticated-app';
import './App.css';

function App() {
  const { user } = useAuthContext();
  return (
    <div className="App">{user ? <AuthenticatedApp /> : <UnauthenticatedApp />}</div>
  );
}

export default App;
